﻿<UserControl x:Class="AppToolkit.WPF.Controls.VectorGraphicsButton"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:Controls="clr-namespace:AppToolkit.WPF.Controls"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             d:DesignHeight="300"
             d:DesignWidth="300"
             mc:Ignorable="d">
    <Grid>
        <Viewbox Margin="1" Stretch="Fill">
            <ContentPresenter x:Name="presenter"
                              HorizontalAlignment="Stretch"
                              VerticalAlignment="Stretch"
                              Content="{Binding VectorSource,
                                                RelativeSource={RelativeSource FindAncestor,
                                                                               AncestorType={x:Type Controls:VectorGraphicsButton}}}" />
        </Viewbox>
    </Grid>
</UserControl>
